﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace Entity.user
{
    /// <summary>
    /// 用户类
    /// </summary>
    [Table("t_shop_user")]
    public class User
    {
        /// <summary>
        /// 购物车ID
        /// </summary>
      [Key]
      public string ID { get; set; }


        /// <summary>
        /// 手机
        /// </summary>
        public string Phone { get; set; }


        /// <summary>
        /// 邮箱
        /// </summary>
        public string Mailbox { get; set; }

        /// <summary>
        /// 帐号
        /// </summary>
        public string Accounts { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 状态0停用，1表示启用
        /// </summary>

        public int Status { get; set; }

        /// <summary>
        /// 状态描述
        /// </summary>
        public string StatusDesc
        {
            get
            {
                if (Status == 1)
                {
                    return "启用";
                }
                else if (Status == 0)
                {
                    return "停用";
                }
                else
                {
                    return "";
                }

            }
        }

        


    }
}
